TARGET = betalabsclientqtquick
VERSION = 1.1.0
TEMPLATE = app
QT = core gui declarative opengl

HEADERS += src/componentloader.h
SOURCES += src/main.cpp \
    src/componentloader.cpp
RESOURCES += BetaLabsClientQtQuick.qrc
OTHER_FILES += qml/BetaLabsClientQtQuick.qml \
    qml/BetaView.qml \
    qml/DetailsView.qml \
    qml/DownloadInfoView.qml \
    qml/LatestView.qml \
    qml/PopularView.qml \
    qml/ResultsView.qml \
    qml/ReviewView.qml \
    qml/SearchView.qml \
    qml/TopBar.qml \
    qml/SplashScreen.qml \
    script/ajax.js \
    script/common.js \
    gfx/splash_screen.png \
    gfx/background_360x640.png \
    gfx/icon.svg \
    gfx/logo_112x60.png \
    gfx/title_application_details.png \
    gfx/title_download_info.png \
    gfx/title_latest_applications.png \
    gfx/title_most_popular_applications.png \
    gfx/title_reviews.png \
    gfx/title_search.png \
    gfx/tb-latest.png \
    gfx/tb-popular.png \
    qtc_packaging/debian_harmattan/rules \
    qtc_packaging/debian_harmattan/README \
    qtc_packaging/debian_harmattan/copyright \
    qtc_packaging/debian_harmattan/control \
    qtc_packaging/debian_harmattan/compat \
    qtc_packaging/debian_harmattan/changelog

symbian: {
    # In Symbian^1, OpenGL is not available
    contains(SYMBIAN_VERSION, 9.4) {
        QT -= opengl
        DEFINES += QT_NO_OPENGL
    }
    TARGET.CAPABILITY = NetworkServices

    TARGET = BetaLabsClientQtQuick
    TARGET.EPOCHEAPSIZE = 0x100000 0x2000000
    TARGET.EPOCSTACKSIZE = 0x14000

    ICON = gfx/icon.svg

    # The deployment section won't be needed anymore when Qt Quick
    # components 1.1 will be published
    # (see https://bugreports.qt.nokia.com//browse/QTCOMPONENTS-858)
    qmlfiles.sources = qml
    scriptfiles.sources = script
    DEPLOYMENT += qmlfiles scriptfiles
}

# Simulator
simulator {
    # The following commands won't be needed anymore when Qt Quick
    # components 1.1 will be published
    # (see https://bugreports.qt.nokia.com//browse/QTCOMPONENTS-858)
    system(mkdir ..\\BetaLabsClientQtQuick-build-simulator-Simulator_Qt_for_MinGW_4_4__Qt_SDK__Debug\\qml)
    system(mkdir ..\\BetaLabsClientQtQuick-build-simulator-Simulator_Qt_for_MinGW_4_4__Qt_SDK__Debug\\script)
    system(copy qml\\* ..\\BetaLabsClientQtQuick-build-simulator-Simulator_Qt_for_MinGW_4_4__Qt_SDK__Debug\\qml)
    system(copy script\\* ..\\BetaLabsClientQtQuick-build-simulator-Simulator_Qt_for_MinGW_4_4__Qt_SDK__Debug\\script)
}

unix:!symbian:!maemo5 {
    target.path = /opt/BetaLabsClientQtQuick/bin
    INSTALLS += target
}
